home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
GetVRoot.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
3KB
|
133 lines
Tk_GetVRootGeometry(3)Tk Library Procedures
_________________________________________________________________
NAME
Tk_GetVRootGeometry - Get location and size of virtual root
for window
SYNOPSIS
#include <tk.h>
Tk_GetVRootGeometry(_t_k_w_i_n, _x_P_t_r, _y_P_t_r, _w_i_d_t_h_P_t_r, _h_e_i_g_h_t_P_t_r)
ARGUMENTS
Tk_Window _t_k_w_i_n (in) Token for window whose
virtual root is to be
queried.
int _x_P_t_r (out) Points to word in which to
store x-offset of virtual
root.
int _y_P_t_r (out) Points to word in which to
store y-offset of virtual
root.
unsigned int _w_i_d_t_h_P_t_r(out)
Points to word in which to
store width of virtual
root.
unsigned int _h_e_i_g_h_t_P_t_r(out)
Points to word in which to
store height of virtual
root.
_________________________________________________________________
DESCRIPTION
TkGetVRootGeometry returns geometry information about the
virtual root window associated with _t_k_w_i_n. The ``associ-
ated'' virtual root is the one in which _t_k_w_i_n's nearest
top-level ancestor (or _t_k_w_i_n itself if it is a top-level
window) has been reparented by the window manager. This
window is identified by a __SWM_ROOT or __WM_ROOT property
placed on the top-level window by the window manager. If
_t_k_w_i_n is not associated with a virtual root (e.g. because
the window manager doesn't use virtual roots) then *_x_P_t_r and
*_y_P_t_r will be set to 0 and *_w_i_d_t_h_P_t_r and *_h_e_i_g_h_t_P_t_r will be
set to the dimensions of the screen containing _t_k_w_i_n.
KEYWORDS
geometry, height, location, virtual root, width, window
Tk 1
Tk_GetVRootGeometry(3)Tk Library Procedures
manager
Tk 2